import { http } from '@/utils/http'

//获取租房信息
export const getRentHouseAPI = (data: any) => {
  return http({
    method: 'GET',
    url: '/admin-api/house/rent-house/get',
    data,
  })
}
// 租房分页
export const getRentHousePageAPI = (data: any) => {
  const headers = {
    'tenant-id': "1",
  };
  return http({
    method: 'GET',
    url: '/admin-api/house/rent-house/page',
    data,
    header:headers
  })
}
//创建收藏信息
export const getRentHouseCollectionCreateAPI = (data: any) => {
  return http({
    method: 'POST',
    url: '/admin-api/house/favorite/create',
    data,
  })
}
// 获得小区信息
export const getCommunityAPI = (data: any) => {
  return http({
    method: 'GET',
    url: '/admin-api/house/community/get',
    data,
  })
}
